﻿<UserControl x:Class="MTBrainStorm.Views.Element"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d" 
             xmlns:vm="clr-namespace:MTBrainStorm.ViewModels"
             d:DesignHeight="300" d:DesignWidth="300">
    
    <Grid>
        <Grid.Resources>
            <Style TargetType="{x:Type StackPanel}">
                <Setter Property="Orientation" Value="Horizontal" />
                <Setter Property="VerticalAlignment" Value="Center" />
            </Style>
            <Style TargetType="{x:Type TextBox}">
                <Setter Property="Width" Value="150" />
                <Setter Property="Height" Value="25" />
            </Style>
        </Grid.Resources>
        
        <Rectangle 
            Width="{Binding Width}" Height="{Binding Height}" 
            Fill="Olive" AllowDrop="True" />
        <StackPanel Orientation="Vertical">
            <StackPanel>
                <TextBlock Text="Position:" />
                <TextBox Text="{Binding Position}" />
            </StackPanel>
            <StackPanel>
                <TextBlock Text="Rotation:" />
                <TextBox Text="{Binding Rotation}" />
            </StackPanel>
            <StackPanel>
                <TextBlock Text="ScaleX:" />
                <TextBox Text="{Binding ScaleX}" />
            </StackPanel>
            <StackPanel>
                <TextBlock Text="ScaleY:" />
                <TextBox Text="{Binding ScaleY}" />
            </StackPanel>
        </StackPanel>
    </Grid>
</UserControl>
